package com.sinosoft.tcmneim.service.impl;

import com.sinosoft.tcmneim.dao.TblMedicalIncexpenDao;
import com.sinosoft.tcmneim.dataObject.TblMedicalIncexpen;
import com.sinosoft.tcmneim.service.TblMedicalIncexpenService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TblMedicalIncexpenServiceImpl implements TblMedicalIncexpenService {

    @Resource
    private TblMedicalIncexpenDao tblMedicalIncexpenDao;


    @Override
    public List<TblMedicalIncexpen> list() {
        return tblMedicalIncexpenDao.list();
    }

    @Override
    public List<TblMedicalIncexpen> selectByItemCode(String itemCode) {
        return tblMedicalIncexpenDao.selectByItemCode(itemCode);
    }

    @Override
    public int insert(TblMedicalIncexpen tblMedicalIncexpen) {
        return tblMedicalIncexpenDao.insert(tblMedicalIncexpen);
    }

    @Override
    public int updated(TblMedicalIncexpen tblMedicalIncexpen) {
        return tblMedicalIncexpenDao.updated(tblMedicalIncexpen);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblMedicalIncexpenDao.deleteByItemCode(itemCode);
    }
}
